#########################
# Qt
FIND_PACKAGE(Qt4 REQUIRED)
FIND_PACKAGE(OpenGL REQUIRED)
SET(QT_USE_QTOPENGL ON)
INCLUDE(${QT_USE_FILE})
#########################

SET(imageviewer_SOURCES main.cc imageviewer.cc scrubber.cc)
QT_WRAP_CPP(LIBMV imageviewer_SOURCES imageviewer.h scrubber.h)
ADD_EXECUTABLE(imageviewer ${imageviewer_SOURCES})
TARGET_LINK_LIBRARIES(imageviewer image
                      ${BLAS_LIBRARIES}
                      ${LAPACK_LIBRARIES}
                      ${QT_QTCORE_LIBRARY}
                      ${QT_QTGUI_LIBRARY}
                      ${QT_QTOPENGL_LIBRARY}
                      ${OPENGL_gl_LIBRARY}
                      ${OPENGL_glu_LIBRARY})

LIBMV_INSTALL_EXE(imageviewer)

ADD_SUBDIRECTORY(tvr)
ADD_SUBDIRECTORY(nvr)
